package cool.mor.dao;

import cool.mor.entity.RewardsAndPunishment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ivan
 */
@Repository
public interface RewardsAndPunishmentRepository extends JpaRepository<RewardsAndPunishment,String> {
    /**
     * 根据员工id来查询其名下的所有奖惩记录
     * @param employeeId
     * @return
     */
     List<RewardsAndPunishment> findAllByEmployeeId(String employeeId);
}
